class {
    getFullName() {
        return this.input.firstName + ' ' + this.input.lastName;
    }
}

<div>Hello ${component.getFullName()}!</div>